# 判断类型可以用isinstance(变量，变量类型),返回True或False
print(isinstance(123, int))
print(isinstance(123.45, int))
print(isinstance('abc', str))
print(isinstance([1, 2, 3], list))
print(isinstance((1, 2, 3), tuple))
